<template>
	<view>
		<view v-for="(item,index) in list" :key="index">
			<u-card :title="'车牌号：'+item['F2']">
				<view class="" slot="body">
					<view>毛重：{{item['F15']}}</view>
					<view>皮重：{{item['F16']}}</view>
					<view>净重：{{item['F17']}}</view>
					<view>货物名称：{{item['F10']}}</view>
					<view>产地：{{item['F20']}}</view>
					
				</view>
				<view class="" slot="foot">
					<view>称毛重时间：{{item['F39']}}</view>
				</view>
			</u-card>
		</view>
		<view style="height: 300upx;"></view>
		<view style="display: flex;justify-content: center; color: #C0C4CC;height: 80upx;align-items: center;">- 到底了 -</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';
	export default {
		computed: {
			...mapState('account', ['token', 'userInfo'])
		},
		data() {
			return {
				list:[],
				title: '素胚勾勒出青花，笔锋浓转淡',
				subTitle: '2020-05-15',
				thumb: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
			}
		},
	 
		methods: {
			getList(){
				uni.showLoading({
					title:"加载中"
				})
				setTimeout(()=>{
					this.$ajax.get({
						url:"/CarWeightLog/findCarOrderList?BianHao="+this.userInfo.AccountInfo.BianHao,
					}).then(res=>{
						this.list = res.data;
						uni.hideLoading()
					}).catch(()=>{
						uni.hideLoading()
					})
					
				},1000)
			},
			
		},
		onLoad() {
			this.getList()
		}
		
	}
</script>

<style scoped lang="scss">
	.u-card-wrap { 
		background-color: $u-bg-color;
		padding: 1px;
	}
	
	.u-body-item {
		font-size: 32rpx;
		color: #333;
		padding: 20rpx 10rpx;
	}
		
	.u-body-item image {
		width: 120rpx;
		flex: 0 0 120rpx;
		height: 120rpx;
		border-radius: 8rpx;
		margin-left: 12rpx;
	}
</style>
